(PECL tidy >= 0.5.2)
tidy_setopt — Updates the configuration settings for the specified tidy document
tidy_setopt() updates the specified option with a new value .
The tidy option name. A list of available configuration options may be found at: » http://tidy.sourceforge.net/docs/quickref.html.
The tidy option name.
Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.
Example #1 tidy_setopt() example
<?php
$html = '<p>test</i>';
$tidy = tidy_parse_string($html);
tidy_setopt('indent', FALSE);
?>
Note: Esta funcion esta disponible solamente con Tidy 1.0. Se dejo de utilizar en Tidy 2.0 y por lo tanto no se encuentra dispobible actualmente.